<?php
/*
  $Id: header.php,v 1.19 2002/04/13 16:11:52 hpdl Exp $

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2002 osCommerce

  Released under the GNU General Public License
*/
  require(DIR_WS_INCLUDES . 'javascript/' . FILENAME_INCLUDE_JAVASCRIPT_OKKO);
  if ($messageStack->size > 0) {
    echo $messageStack->output();
  }
?>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td><?php echo tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce', '204', '50'); ?></td>
    <td align="right"><?php echo '<a href="http://www.oscommerce.com" target="_blank">' . tep_image(DIR_WS_IMAGES . 'header_support.gif', HEADER_TITLE_SUPPORT_SITE, '50', '50') . '</a>&nbsp;&nbsp;<a href="' . tep_catalog_href_link() . '">' . tep_image(DIR_WS_IMAGES . 'header_checkout.gif', HEADER_TITLE_ONLINE_CATALOG, '53', '50') . '</a>&nbsp;&nbsp;<a href="' . tep_href_link(FILENAME_DEFAULT, '', 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_administration.gif', HEADER_TITLE_ADMINISTRATION, '50', '50') . '</a>'; ?>&nbsp;&nbsp;</td>
  </tr>
  <tr class="headerBar">
	<?php
	// BOF: KategorienAdmin / OLISWISS
    if ($login_groups_id == 1) {
    // BOF: KategorienAdmin / OLISWISS
	?>
	<!--//Secure admin-->
	<!--<td class="headerBarContent">&nbsp;&nbsp;<?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, '', 'NONSSL') . '" class="headerLink">' . HEADER_TITLE_TOP . '</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="' . tep_href_link(FILENAME_LOGOFF, '', 'SSL') . '" class="headerLink">' . HEADER_LOGOFF . '</a>'; ?></td>-->
	<!--//Secure admin-->
	<td class="headerBarContent">&nbsp;&nbsp;<?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, '', 'NONSSL') . '" class="headerLink">' . HEADER_TITLE_TOP . '</a>'; ?></td>
	<?php
	// BOF: KategorienAdmin / OLISWISS
	}else	
	{
	?>
	<!--<td class="headerBarContent">&nbsp;&nbsp;</td>-->
	<?php
	}
	// BOF: KategorienAdmin / OLISWISS
	?>
	
	<!-- BOE Access with Level Account (v. 2.2a) for the Admin Area of osCommerce (MS2) 1 of 1 -->
    <td class="headerBarContent">&nbsp;&nbsp;<?php
		if (tep_session_is_registered('login_id')) {
    echo '<a href="' . tep_href_link(FILENAME_ADMIN_ACCOUNT, '', 'SSL') . '" class="headerLink">' . HEADER_TITLE_ACCOUNT . '</a> | <a href="' . tep_href_link(FILENAME_LOGOFF_ADMIN, '', 'NONSSL') . '" class="headerLink">' . HEADER_TITLE_LOGOFF_ADMIN . '</a>';
  } else {
    echo '<a href="' . tep_href_link(FILENAME_DEFAULT, '', 'NONSSL') . '" class="headerLink">' . HEADER_TITLE_TOP . '</a>';
  }
	?></td>
<!-- BOE Access with Level Account (v. 2.2a) for the Admin Area of osCommerce (MS2) 1 of 1 -->
	
	<?php
	// BOF: KategorienAdmin / OLISWISS
    if ($login_groups_id == 1) {
    // BOF: KategorienAdmin / OLISWISS
	?>	
    <td class="headerBarContent" align="right"><?php echo '<a href="http://www.oscommerce.com" class="headerLink">' . HEADER_TITLE_SUPPORT_SITE . '</a> &nbsp;|&nbsp; <a href="' . tep_catalog_href_link() . '" class="headerLink">' . HEADER_TITLE_ONLINE_CATALOG . '</a> &nbsp;|&nbsp; <a href="' . tep_href_link(FILENAME_DEFAULT, '', 'NONSSL') . '" class="headerLink">' . HEADER_TITLE_ADMINISTRATION . '</a>'; ?>&nbsp;&nbsp;</td>
	<?php
	// BOF: KategorienAdmin / OLISWISS
	}
	else	
	{
	?>
	<td class="headerBarContent">&nbsp;&nbsp;</td>
	<?php
	}
	// BOF: KategorienAdmin / OLISWISS
	?>
  </tr>
</table>